<div class="lops index">
<h2><?php __('Thông Tin Lớp');?></h2>
<p>
<?php
echo $paginator->counter(array(
/*'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)*/
));
?></p>
<table cellpadding="0" cellspacing="0">
<tr>
	<th><?php echo $paginator->sort('STT');?></th>
	<th><?php echo $paginator->sort('Hệ đào tạo', 'lop.daotaohe_id');?></th>
	<th><?php echo $paginator->sort('Khóa', 'lop.khoa_id');?></th>
	<th><?php echo $paginator->sort('Ngành', 'lop.nganh_id');?></th>
	<th><?php echo $paginator->sort('Mã lớp', 'lop.malop');?></th>
	<th><?php echo $paginator->sort('Tên lớp', 'lop.tenlop');?></th>
	<th class="actions"><?php __('Thao tác');?></th>
</tr>
<?php
$i = 0;
foreach ($lops as $lop):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $lop['Lop']['id']; ?>
		</td>
		<td>
			<?php echo $html->link($lop['Daotaohe']['id'], array('controller' => 'daotaohes', 'action' => 'view', $lop['Daotaohe']['id'])); ?>
		</td>
		<td>
			<?php echo $html->link($lop['Khoa']['id'], array('controller' => 'khoas', 'action' => 'view', $lop['Khoa']['id'])); ?>
		</td>
		<td>
			<?php echo $html->link($lop['Nganh']['id'], array('controller' => 'nganhs', 'action' => 'view', $lop['Nganh']['id'])); ?>
		</td>
		<td>
			<?php echo $lop['Lop']['malop']; ?>
		</td>
		<td>
			<?php echo $lop['Lop']['tenlop']; ?>
		</td>
		<td class="actions">
			<?php echo $html->link(__('Hiển thị', true), array('action' => 'view', $lop['Lop']['id'])); ?>
			<?php echo $html->link(__('Sửa', true), array('action' => 'edit', $lop['Lop']['id'])); ?>
			<?php echo $html->link(__('Xóa', true), array('action' => 'delete', $lop['Lop']['id']), null, sprintf(__('Bạn có chắc muốn xóa không?', true), $lop['Lop']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Thêm lớp', true), array('action' => 'add')); ?></li>
		<li><?php echo $html->link(__('Danh sách hệ đào tạo', true), array('controller' => 'daotaohes', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm hệ đào tạo', true), array('controller' => 'daotaohes', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Thông tin khôa', true), array('controller' => 'khoas', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm khóa', true), array('controller' => 'khoas', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Danh sách ngành', true), array('controller' => 'nganhs', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm ngành ', true), array('controller' => 'nganhs', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Danh sách sinh viên', true), array('controller' => 'sinhviens', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm sinh viên', true), array('controller' => 'sinhviens', 'action' => 'add')); ?> </li>
	</ul>
</div>
